package com.murray.assignment.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author Murray
 * @Date 2021/6/12
 * @Time 19:28
 * @Scription 商品类别表
 */
public class Category implements Serializable {

    /**
     * 主键
     */
    private Integer cid;
    /**
     * 类别标题
     */
    private String cTitle;
    /**
     * 父id
     */
    private Integer parentId;
    /**
     * 数据库排序用的字段
     */
    private Integer orderNum;
    /**
     * 类别创建时间
     */
    private Date categoryDate;

    /**
     * 子类别
     */
    private List<Category> categoryList;

    @Override
    public String toString() {
        return "Category{" +
                "cid=" + cid +
                ", cTitle='" + cTitle + '\'' +
                ", parentId=" + parentId +
                ", orderNum=" + orderNum +
                ", categoryDate=" + categoryDate +
                ", categoryList=" + categoryList +
                '}';
    }

    public List<Category> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(List<Category> categoryList) {
        this.categoryList = categoryList;
    }

    public Category() {
    }

    public Category(Integer cid, String cTitle, Integer parentId, Integer orderNum, Date categoryDate, List<Category> categoryList) {
        this.cid = cid;
        this.cTitle = cTitle;
        this.parentId = parentId;
        this.orderNum = orderNum;
        this.categoryDate = categoryDate;
        this.categoryList = categoryList;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getcTitle() {
        return cTitle;
    }

    public void setcTitle(String cTitle) {
        this.cTitle = cTitle;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Date getCategoryDate() {
        return categoryDate;
    }

    public void setCategoryDate(Date categoryDate) {
        this.categoryDate = categoryDate;
    }

    public Category(Integer cid, String cTitle, Integer parentId, Integer orderNum, Date categoryDate) {
        this.cid = cid;
        this.cTitle = cTitle;
        this.parentId = parentId;
        this.orderNum = orderNum;
        this.categoryDate = categoryDate;
    }
}
